package room

import (
	gamemap "FlyFight/Internal/GameMap"
	"sync"

	"github.com/gorilla/websocket"
)

type RoomMap map[int]*Gameroom

type Wmessage struct{
	Order uint8 `json:"order"`
	Data []string `json:"data"`
}

type member struct{
	Name string
	Conn *websocket.Conn
}

type Gameroom struct{
	Begin bool
	RoomId int
	HostUid int
	Mu sync.Mutex
	uuid string
	Gmap *gamemap.Bmap
	Group map[uint32]member
}

var RoomList RoomMap